sisgen [options] <input xss or p?m file> [output p?m file]
It takes an .xss file or a .polyh file as the 3D input data or alternatively a .p?m file as the depth map and optional switches as its command line arguments.
All these options can be abbreviated to the least letters needed to make the chosen option distinct. The default values are given in parentheses.
Sisgen uses buffers which are integer based. So for smoother stereograms, the numbers are scaled up by powers of two. In finding hidden surfaces in the stereogram, the integers in the buffers are compared and, if found with a certain range of each other, a point is considered visible.
The first parameter is the multiplying factor in powers of two, whilst the second gives the maximum absolute difference of values found in the hidden surface check.
For example, "-fine 2 7" means the numbers are first multiplied by 4 (2^2) and if found to have an absolute difference less than or equal to 7 then the corresponding point is visible.
In all, sisgen allows nine different methods of using a tile to make a SIS.
Leave tile as it is and
Scale the tile to fit on the background plane and
Scale each line from the tile to fit the deepest plane that contains a point on that line and
The technique for making a stereogram from a depth map involves interpreting the map as a very fine rectangular net then projecting this to two buffers.
This method is quite slow for large depth maps, so to speed up the process the net is made coarser by skipping intervening points in both the x and y directions.
For example, "-step 2x3" means sisgen uses only alternate values in the x direction and every third value in the y direction.
There are three kinds of random tiles: 0) black & white; 1) grey-scale; and 2) colour using a rainbow palette of 24 colours.
Once running, it will load the input file, display a few parameters, request a filename (if one was not specified) and save the SIS. If sisgen is in the pipe mode then it just loads in the file(s) and sends the result down stdout. An example of using the pipe mode is "sisgen -o foo.xss | xv -".
If you find any bugs, please report them to the author listed below.
cvtopolyh(6), cvtoppm(6), mkpolyh(6), sisgen(6), vpgs(6), xpgs(6) and xss(6).
Copyright 1994, 16th November.
By Peter Chang. All rights reserved.
Version 1.0
See notice in the xpgs man page.